using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MvcExtExample.Handlers
{
    public partial class CheckLoginedOrNot : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["LogedUser"] != null && Session["LogedUser"].ToString().Trim() != "")
            {
                    Response.Write("true");//正确
            }
            else
            {
                Response.Write("false");//空值
                Response.Redirect("../home");
                Response.End();
            }
        }
    }
}